How to inverse the result of this pyramid in python

welcome to shbcf.ru